package graphics.view2D;

import com.badlogic.gdx.InputProcessor;
import controller.GameController;

public class MouseProcessor2D implements InputProcessor {

	private GameController gameController;

	public MouseProcessor2D(GameController gameController) {
		this.gameController = gameController;
	}

	public boolean touchUp(int x, int y, int pointer, int button) {
		return true;
	}

	public boolean touchMoved(int x, int y) {
		return false;
	}

	public boolean touchDragged(int x, int y, int pointer) {
		return false;
	}

	/**
	 * Give back the touchDown parameters to the controller
	 */
	public boolean touchDown(int x, int y, int pointer, int button) {
		gameController.touchDown(x, y, pointer, button);
		return true;
	}

	public boolean scrolled(int amount) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean keyUp(int keycode) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean keyTyped(char character) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean keyDown(int keycode) {
		// TODO Auto-generated method stub
		System.out.println("keyDown  key=" + keycode);
		return false;
	}
}
